import request from '@/utils/request'

//实验安排列表 - 管理员
export function queryPageList(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/queryPageList',
		headers: {
			userButton: 'c8d7f250867d422e88ef90b003c8340c'
		},
		data
	})
}

//实验安排列表 - pi审核员
export function queryUserPageList(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/queryUserPageList',
		headers: {
			userButton: '359eeef677c64921be9520c91a4e0980'
		},
		data
	})
}

//实验安排列表 - pi审核员
export function queryAuditPageList(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/queryAuditPageList',
		headers: {
			userButton: '5c29dd0d2dc44f90b0050736d9a0dd48'
		},
		data
	})
}

//实验安排列表 - 运行维护人员
export function queryDownPageList(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/queryDownPageList',
		headers: {
			userButton: '72dd1da8cb704b88b374e9cb53e498ec'
		},
		data
	})
}

//添加实验安排
export function addedPiStat(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/add',
		headers: {
			userButton: '9d62dcc8502445859c97325284791298'
		},
		data
	})
}

//删除实验安排
export function batchDeleteData(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/batchDelete',
		headers: {
			userButton: '7635f90955f84bb483e399c2343a122c'
		},
		data
	})
}

//修改实验安排
export function updatePiStat(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/update',
		headers: {
			userButton: '3148e8291d774e79be88788e9efe7daf'
		},
		data,
	})
}

//实验安排详情
export function piStatDetail(id) {
	return request({
		method: 'get',
		url: 'tbPiStat/query/' + id,
		headers: {
			userButton: 'c252e5cf509f4a6a970ae94d067be86e'
		},
	})
}

//成果审核
export function piStatAudit(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/audit',
		headers: {
			userButton: 'c6a9e3c5fdf848d08535f557f87691e7'
		},
		data
	})
}

//实验安排提交小结
export function piStatReality(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/updateReality',
		headers: {
			userButton: '52c1ee81464449e3853eca8dc8e038ce'
		},
		data
	})
}

//实验安排退回
export function piStatBack(data) {
	return request({
		method: 'post',
		url: 'tbPiStat/updateBack',
		headers: {
			userButton: '17da844c47ed4b3c95c0f930ff7de222'
		},
		data
	})
}

//实验小结导出
export function piStatExport(data) {
	return request({
		method: 'get',
		url: 'tbPiStat/export',
		responseType: 'blob',
		headers: {
			userButton: '520959e9c7fc4a3b9a1b94759221e08b'
		},
		params: data
	})
}